package easytalk.connectivity.googletalk;

import java.util.Comparator;
import java.util.StringTokenizer;

public class GoogleTalkIdComparator implements Comparator<String> {

	@Override
	public int compare(String o1, String o2) {
		StringTokenizer tokenizer1 = new StringTokenizer(o1,"/");
		StringTokenizer tokenizer2 = new StringTokenizer(o2,"/");
		if (tokenizer1.nextElement().equals(tokenizer2.nextElement()))
			return 0;
		
		return 1;
	}

}
